find_package(OpenCV REQUIRED)

if(NOT WIN32)
ADD_DEFINITIONS("-std=c++0x -O3")
endif(NOT WIN32)

include_directories(${CMAKE_CURRENT_LIST_DIR}/src) 
FILE(GLOB_RECURSE sourcefiles ${CMAKE_CURRENT_LIST_DIR}/src/*.cpp)
add_executable(kcf-tracker ${sourcefiles})
target_link_libraries(kcf-tracker ${OpenCV_LIBS})